/**
 * jims
 */
package com.jims.master.modules.csm.service;


import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.csm.dao.ExpDictDao;
import com.jims.master.modules.csm.entity.ExpDict;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 消耗品字典维护Service
 * @author zhuq
 * @version 2017-03-02
 */
@Service
@Transactional(readOnly = true)
public class ExpDictService extends CrudService<ExpDictDao, ExpDict> {


    public List<ExpDict> findAutoCompleteList(ExpDict expDict,String q,String limit) {
        return dao.findAutoCompleteList(expDict,q,limit);
    }

    public Page<ExpDict> findPage(Page<ExpDict> page, ExpDict expDict) {
        return super.findPage(page, expDict);
    }

    /*
    * @朱齐
    * 根据expCode查询expDict列表
    * */
    public List<ExpDict> findByExpCode(ExpDict expDict) {
        return dao.findByExpCode(expDict);
    }


}